#include "led.h"
unsigned char code led[] = {0x81,0x42,0x24,0x18};
void led_1(void)
{
	static unsigned  int l1 = 0;
	unsigned int c = 0x01<<l1;
	Latch(LED,~(unsigned char)c);
	l1++;
	if(l1==8)
		l1 = 0;
}

void led_2(void)
{
	static unsigned  int l2 = 0;
	unsigned int c = 0x80>>l2;
	Latch(LED,~(unsigned char)c);
	l2++;
	if(l2==8)
		l2 = 0;
	
}


void led_3(void)
{
	static unsigned char l3 = 0;
// unsigned char c;
//	c = ((0x80>>l3)|(0x01<<l3));
	Latch(LED,~led[l3]);
	l3++;
	if(l3==4)
		l3 = 0;
}

void led_4(void)
{
	static unsigned char l4 = 3;
	Latch(LED,~led[l4]);
	if(l4!=0)
	l4--;
	else
		l4 = 3;
}

